//
//  JobInfoView.m
//  项目三
//
//  Created by rimi on 15/10/15.
//  Copyright (c) 2015年 rimi. All rights reserved.
// 200 800

#import "JobInfoView.h"
@interface JobInfoView ()

- (void)initializeUserInterface; /**< 初始化用户界面 */

@end

@implementation JobInfoView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initializeUserInterface];
    }
    return self;
}

- (void)initializeUserInterface {
    
    self.backgroundColor = COLOR(205, 205, 205, 1);
    UIImageView *image = [[UIImageView alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0 ,20 ,701 ,904))];
    image.image = [UIImage imageNamed:@"职业资料"];
    [self addSubview:image];
    
    [self addSubview:self.userBtn];
    [self addSubview:self.beforeBtn];
}
#pragma mark - getter
- (UIButton *)userBtn {
    
    if (!_userBtn) {
        _userBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_userBtn setFrame:DHFlexibleFrame(CGRectMake(400, 800, 112, 50))];
        [_userBtn setBackgroundImage:[UIImage imageNamed:@"下一步"] forState:UIControlStateNormal];
    }
    return _userBtn;
}
- (UIButton *)beforeBtn {

    if (!_beforeBtn) {
        _beforeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_beforeBtn setFrame:DHFlexibleFrame(CGRectMake(200, 800, 112, 50))];
        [_beforeBtn setBackgroundImage:[UIImage imageNamed:@"上一步"] forState:UIControlStateNormal];
    }
    return _beforeBtn;
}
@end
